package cn.itcast.dagger2demo;

/**
 * Created by Administrator on 2016/8/2.
 */
public class DaggerPrecenter {

    MainActivity mainActivity;
    User user;

    public DaggerPrecenter(MainActivity mainActivity, User user) {
        this.mainActivity = mainActivity;
        this.user = user;
    }

    public void setUser() {

        mainActivity.showUserName(user.name);
    }
}
